package cn.itcast;

import cn.itcast.pojo.Permission;
import cn.itcast.pojo.Role;
import cn.itcast.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Set;
@Component
public interface UserDao {
    User findUserByUsername(@Param("username") String username);

    Set<Role> findUserRoleByUserId(@Param("userId") Integer userId);

    Set<Permission> findPermission(@Param("roleIds") List<Integer> roleIds);
}
